{* $Id$ *}
{include_core file="admin/lib/header.html" user_name="积分记录列表"}
  <div class="page-header border-bottom clearfix">
    <h2 class="left">积分记录管理<span>在这里对积分进行管理</span></h2>
  	<a href="{AnUrl('user/admin/index')}" class="btn btn-default btn-sm right">&lt;&nbsp;返回用户列表</a>
  </div>
  <div class="search-level1 clearfix">
    <form action="score/admin" method="get">
      <input type="hidden" name="is_advenced" value="0" {if $is_advenced == 1}style="display:none;"{/if}>
      <input type="hidden" name="status" value="{$status}" {if $is_advenced == 1}style="display:none;"{/if}>
      <input type="text" class="left" name="search_filter[user_name]" value="{$search_filter.user_name}" placeholder="输入用户名" {if $is_advenced == 1}style="display:none;"{/if}>
      <button type="submit" class="btn btn-success btn-sm left" {if $is_advenced == 1}style="display:none;"{/if}>搜索</button>
      <a href="javascript:void(0);" class="close js_advanced {if $is_advenced == 1}js_isOpen open{/if}">高级搜索<em></em></a>
    </form>
  </div>
  <div class="search-form js_advancedForm" {if $is_advenced == 0}style="display:none;"{/if}>
    <form action="score/admin" method="get" class="js_focusSearchForm">
      <input type="hidden" name="is_advenced" value="1">
      <input type="hidden" name="status" value="{$status}">
      <p>
        <label for="" class="search-f-label">用户名：</label>
        <input type="text" class="search-f-ipt1" name="search_filter[user_name]" value="{$search_filter.user_name}">
      </p>
      <p>
        <label for="" class="search-f-label">操作人：</label>
        <input type="text" class="search-f-ipt1" name="search_filter[admin_name]" value="{$search_filter.admin_name}">
      </p>
      <p>
      <label for="" class="search-f-label">添加时间：</label>
        <input type="text" class="search-f-ipt1 search-f-ipt2" name="search_filter[start_date]" value="{$search_filter.start_date}" id="startDate">
        <span class="search-f-line"></span>
        <input type="text" class="search-f-ipt1 search-f-ipt2" name="search_filter[end_date]" value="{$search_filter.end_date}" id="stopDate">
      </p>
      <p><label for="" class="search-f-label"></label><button type="submit" class="btn btn-success btn-xs js_searchBtn">搜索</button></p>
    </form>
  </div>
  
  <!--start:列表-->
  <table class="list-table">
    <thead><tr>
      {if $status == 1}
      <th style="width:20px;"><input type="checkbox" style="padding:6px;border:1px solid #999;background-color:white;border-radius:2px;" class="selectAll"></th>
      {/if}
      <th style="min-width:60px;">用户名</th>
      <th style="min-width:120px;">积分</th>
      <th style="min-width:120px;">来源</th>
      <th style="min-width:120px;">添加时间</th>
      <th style="min-width:300px;">备注</th>
    </tr></thead>
    <tbody>
      {foreach $score_list as $k => $v}
        <tr id="dataList{$v.id}" {if $k%2 == 1} class="bg-gray"{/if} data-id="{$v.id}">
          {if $status == 1}
            <td><input type="checkbox" style="padding:6px;border:1px solid #999;background-color:white;border-radius:2px;" class="js_listSelect" /></td>
          {/if}
          <td>{$v.user_name}</td>
          <td>{$v.score}</td>
          <td>{$v.res_name}</td>
          <td>{$v.add_time}</td>
          <td>{$v.extra}</td>
          <!-- <td>
             <a href="{AnUrl("score/admin/edit?id={$v.id}")}" class="btn btn-info btn-xs"><i class="icon-edit icon-white"></i>编辑</a>
            {if $v.status == 1}
              <a href="{AnUrl("score/admin/delete?id={$v.id}")}" class="btn btn-danger btn-xs deleteOne"><i class="icon-trash icon-white"></i>删除</a>
            {elseif $v.status == 0}
              <a href="{AnUrl("score/admin/change_status?id={$v.id}")}" class="btn btn-success btn-xs js_changeStatus"><i class="icon-trash icon-white"></i>恢复</a>
              <a href="{AnUrl("score/admin/delete_record?id={$v.id}")}" class="btn btn-danger btn-xs js_deleteOneMessage"><i class="icon-trash icon-white"></i>销毁</a>
            {/if} 
          </td>  -->
        </tr>
      {foreachelse}
          <tr><td class="txtleft" colspan="6">暂无数据</td></tr>
      {/foreach}
    </tbody>
  </table>
  {include_core file="admin/lib/pager.html"}
<!--end:列表-->
{load_js file='zclip/jquery.zclip.min.js'}
{load_js file='zclip/ZeroClipboard.js'}
{include_core file="admin/lib/footer.html"}